package com.neusoft.springboot06.service;

import com.neusoft.springboot06.dao.mapper.ItemsMapper;
import com.neusoft.springboot06.domain.Items;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ItemService {

    @Autowired
    private ItemsMapper itemsMapper;

    public Items finditemsByID(Integer id)
    {
        return itemsMapper.selectByPrimaryKey(id);
    }
}
